<template>
	<view class="cash_box">
		<view class="item" v-for="(item,index) in data">
			<view class="dis_fx fx_column fx_between">
				<view class="tit">提现金额</view><view class="price">+{{item.amount}}元</view>
			</view>
			<view class="dis_fx fx_column fx_between"><view class="date">申请时间：{{item.requestTime}}</view><view class="state" v-if="item.result==0">待处理</view><view class="state" v-if="item.result==1">提现成功</view><view class="state fail" v-if="item.result==2">提现失败</view></view>
		</view>
	</view>
</template>

<script>
	import util from '../../../common/util.js'
	export default {
		data() {
			return {
				data:[],
				
			}
		},
		onLoad(){
			
		},
		onShow(){
			this.getStream()
		},
		methods: {
			//获取流水信息
			getStream(){
				uni.showLoading({
					mask:true,
					title: '加载中'
				});
				var that=this
				var params={}
				util.fetchPost('/userWithdrawLog/list',params,function(res){
					that.data=res.data
					uni.hideLoading();
				},function(){},true)
			},
		}
	}
</script>

<style>
	.cash_box{
		padding: 0 24upx;
	}
	.cash_box .item{
		border-bottom: 1px solid #EAEAEA;
		padding: 24upx 0;
	}
	.cash_box .item .tit{
		color: #333333;
		font-size: 32upx;
		font-weight: 600;
	}
	.cash_box .item .state{
		color: #999;
		font-size: 28upx;
	}
	.cash_box .item .state.fail{
		color: #FC5C1D;
	}
	.cash_box .date{
		font-size: 28upx;
		color: #999999;
		margin: 20upx 0;
	}
	.cash_box .price{
		font-size: 36upx;
		color: #FFC800;
	}
</style>
